package com.md.drcs.dicom.dao;

import com.md.common.utils.dao.MyMapper;
import com.md.drcs.dicom.entity.StudyShareEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudyShareDao extends MyMapper<StudyShareEntity> {

    @Select("select * from u_study_share where user_id = #{userId} and study_id = #{studyId} ")
    List<StudyShareEntity> find(@Param("userId") Integer userId, @Param("studyId") Integer studyId);

    @Select("select * from u_study_share where identifier = #{identifier}")
    StudyShareEntity findByIdentifier(String identifier);

}
